package com.qijian.maindata.domain.query;


import com.baomidou.mybatisplus.annotation.TableName;
import com.qijian.common.utils.mybatis.WhereType;
import com.qijian.common.utils.mybatis.WhereTypeEnum;
import lombok.Data;
import lombok.ToString;

import java.util.Date;
import java.util.Set;


/**
 * 台账变更记录对象 查询条件类
 *
 * @author qijian
 * @date 2024-04-09
 */

@Data
@ToString
@TableName("main_ledger_edit")
public class LedgerEditQuery {

    @WhereType(filed = "id")
    private Long id;
    @WhereType(filed = "id", type = WhereTypeEnum.IN)
    private Set<Long> ids;
    @WhereType(filed = "column_name")
    private String columnName;
    @WhereType(filed = "`before`")
    private String before;
    @WhereType(filed = "`after`")
    private String after;
    @WhereType(filed = "module")
    private String module;
    @WhereType(filed = "main_id")
    private Long mainId;

    @WhereType(filed = "CREATE_TIME", type = WhereTypeEnum.BETWEEN)
    private Date[] createTime;


    @WhereType(fields = {"column_name", "`before`", "`after`", "create_by"}, type = WhereTypeEnum.LIKE)
    private String condition;


}
